home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / igps_102.zip / WSMIN.H < prev   
C/C++ Source or Header  |  1994-06-23  |  2KB  |  61 lines

  1. ////////////////////////////////////////////////////////////////////////////////////
  2. // Internet Global Phone Project
  3. // wsmin.h : general WSNETWRK based declarations                             
  4. //
  5. // Minimal required exerpts from WSNETWRK include file.
  6. // 
  7. // WSNETWRK is a library which makes Winsock programming substantially
  8. // easier.  Contact icode@teleport.com (Mark Clouden) for more info.
  9. ////////////////////////////////////////////////////////////////////////////////////
  10. // Copyright (c) 1993-1994    microWonders Inc.  All rights reserved.
  11. //                                                                         
  12. // AN OPEN INVITION TO BUILD UPON AND CONTRIBUTE TO THE PUBLIC TECHNOLOGY POOL:
  13. // You are encouraged to redistribute, and build upon the technologies presented 
  14. // in this source module and the accompanying article in Dr. Dobb's Journal provided 
  15. // all the conditions listed in the MUSTREAD.TXT file, included with this 
  16. // distribution, are met.
  17. ////////////////////////////////////////////////////////////////////////////////////
  18.  
  19. #ifndef _WSMINH_
  20. #define _WSMINH_
  21.  
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26.  
  27. #define NOTASOCK                  -1
  28. #define TCPSOCK                    1   
  29.  
  30. #define WSCONNECTED           0x0101  
  31. #define WSDISCONNECTED        0x0102 
  32. #define WSACCEPTCOMPLETE      0x0105  
  33.  
  34. #define WM_WSANOTIFY          0x7FFF
  35.  
  36. #define WSEVENT(x) LOWORD(x)
  37. #define WSERROR(x) HIWORD(x)
  38.  
  39. /*
  40.                             A few WSNETWRK types
  41. */
  42. typedef int             WSSOCKET;    
  43. typedef unsigned short  WSPORTID;    
  44. typedef WSPORTID far   *LPWSPORTID;    
  45. typedef unsigned long   WSADDRESS;         
  46. typedef WSADDRESS far  *LPWSADDRESS;   
  47. typedef unsigned int    HSOCK;       
  48. typedef void (WINAPI *  NOTIFYPROC)(WSSOCKET, int, int);
  49.  
  50. #ifndef INADDR_NONE
  51. #define INADDR_NONE      (unsigned long)0xFFFFFFFF
  52. #endif
  53.  
  54. BOOL      __export WINAPI WSDestroySocket(WSSOCKET);
  55. long      __export WINAPI WSNToHL(long);
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif
  61.